import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap/dist/js/bootstrap.min'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'
import VueAxios from 'vue-axios'

import 'vue-simple-spinner/dist/vue-simple-spinner'

import VueI18n from 'vue-i18n'
Vue.use(VueI18n)

const i18n = new VueI18n({
  locale: 'zh',
  messages: {
    'zh': require('@/assets/lang/zh'),
    'mon': require('@/assets/lang/mon'),
    'en': require('@/assets/lang/en'),
    'jp': require('@/assets/lang/jp'),
    'cy': require('@/assets/lang/cy'),
  },
   silentTranslationWarn: true, // 去除国际化警告
})

import VueCropper from 'vue-cropper'

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueAxios, axios)
Vue.use(VueCropper)

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
